package thread_01;

public class Demo24 {
    public static void main(String[] args) throws InterruptedException {
        Object object = new Object();
        System.out.println("等待之前");
        synchronized (object){
            object.wait();
        }
        System.out.println("等待之后");
    }
}
